<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

require_once 'application/libraries/Smarty/Smarty.class.php';

class Misha_Smarty extends Smarty
{
	private $_ci;
	
	public function __construct()
	{
		parent::__construct();
		
		$this->_ci = & get_instance();
		
		$this->_ci->config->load('smarty');
		
		$this->template_dir    = $this->_ci->config->item('template_dir');
		$this->compile_dir     = $this->_ci->config->item('compile_dir');
		$this->cache_dir       = $this->_ci->config->item('cache_dir');
		$this->config_dir      = $this->_ci->config->item('config_dir');
		$this->caching         = $this->_ci->config->item('caching');
		$this->cache_dir       = $this->_ci->config->item('cache_dir');
		$this->cache_lifetime  = $this->_ci->config->item('lifetime');
		$this->left_delimiter  = $this->_ci->config->item('left_delimiter');
		$this->right_delimiter = $this->_ci->config->item('right_delimiter');
	}
}